<?php include_partial("global/navigation")?>
<div class="main_content">
  <h2 class="pg-title"><?php echo __("Nuestros Cursos") ?></h2>
  <div class="pg-cols" >
    <div class="pg-col1">
      <ul>
      <?php foreach($Courses as $key=>$Course){?>
          <li class="course_item">
              <div class="container-course shadown">
                <div class="course-left"><span class="icon"></span> </div>
              <?php if($Course->getIsNew()){?>
              <span class="course-new"></span>
              <?php }?>

                  <h3><?php echo $Course->getName()?></h3>
                  <p><?php echo substr(strip_tags($Course->getDescription()), 0,300) ?>...</p>
                  <a class="link-course link1 linkhu" href="<?php echo url_for("show_curse",array("slug"=>$Course->getSlug()))?>"><?php echo __("Ver Detalles")?>&raquo;</a>			
              </div>
          </li>
      <?php
      }?>
      </ul>
      <div style="position: relative; display: block; height: 30px;">
      <div class="pagination" style="position: absolute; right: 5px;"> 
                 <!--<a href="<?php echo url_for("list_courses",array("pg"=>1)) ?>">
                  <img src="/images/first.png" alt="First page" title="First page" />
                </a> 

                <a href="<?php echo url_for("list_courses",array("pg"=>$pager->getPreviousPage())) ?>">
                  <img src="/images/previous.png" alt="Previous page" title="Previous page" />
                </a>-->
                <?php foreach ($pager->getLinks() as $page): ?>
                    <a class="<?php echo $page == $pager->getPage()?"selected":""; ?>" href="<?php echo url_for('list_courses', array("pg"=>$page)) ?>"><?php echo $page ?></a>
                <?php endforeach; ?>
                <!--
                <a href="<?php echo url_for('list_courses',array("pg"=>$pager->getNextPage())) ?>">
                  <img src="/images/next.png" alt="Next page" title="Next page" />
                </a>

                <a href="<?php echo url_for('list_courses',array("pg"=>$pager->getLastPage()))?>">
                  <img src="/images/last.png" alt="Last page" title="Last page" />
                </a>-->
      </div>
        </div>
      </div>
    </div>
  </div>

